package com.beehoo.dcportal.service.impl;

import java.util.List;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.dao.IRelatedLinkDao;
import com.beehoo.dcportal.model.RelatedLinkBean;
import com.beehoo.dcportal.service.IRelatedLinkServ;

public class RelatedLinkServImpl implements IRelatedLinkServ {
	private IRelatedLinkDao relatedLinkDao;
	public IRelatedLinkDao getRelatedLinkDao() {
		return relatedLinkDao;
	}

	public void setRelatedLinkDao(IRelatedLinkDao relatedLinkDao) {
		this.relatedLinkDao = relatedLinkDao;
	}

	@Override
	public List<RelatedLinkBean> getRelatedLinkList(String streetId,
			String linkType) throws BaseException {
		return relatedLinkDao.getRelatedLinkList(streetId, linkType);
	}

	@Override
	public List<RelatedLinkBean> getRelatedLinkList(String streetId)
			throws BaseException {
		return relatedLinkDao.getRelatedLinkList(streetId, null);
	}
}
